module.exports = {
    internalServerError: {
      code: "5000",
      msg: "系统内部错误",
      result: "",
    },
    userFormateError: {
      code: "1001",
      msg: "用户名或密码为空",
      result: "",
    },
    useAlreadyExited: {
      code: "1002",
      msg: "用户名已经存在",
      result: "",
    },
    userRegisterError: {
      code: "1003",
      msg: "用户注册错误",
      result: "",
    },
    userDoesNotExist: {
      code: "1004",
      msg: "用户不存在",
      result: "",
    },
    userLoginError: {
      code: "1005",
      msg: "用户登录失败",
      result: "",
    },
    invalidPassword: {
      code: "1006",
      msg: "密码不正确",
      result: "",
    },
    TokenExpiredError: {
      code: "1007",
      msg: "Token已过期",
      result: "",
    },
    InvalidToken: {
      code: "1008",
      msg: "无效Token",
      result: "",
    },
    hasNoAdminPermission: {
      code: "1009",
      msg: "您没有管理员权限",
      result: "",
    },
    fileUploadError: {
      code: "1010",
      msg: "图片上传出错",
      result: "",
    },
    unSupportedFileType: {
      code: "1011",
      msg: "不支持的图片格式",
      result: "",
    },
    goodsFormateError: {
      code: "1020",
      msg: "参数格式错误",
      result: "",
    },
    publishGoodsError: {
      code: "1030",
      msg: "发布商品失败",
      result: "",
    },
    invalidGoodsID: {
      code: "1040",
      msg: "无效的商品ID",
      result: "",
    },
    addCartsError: {
      code: "1050",
      msg: "添加到购物车失败",
      result: "",
    },
    cartFormatError: {
      code: "1060",
      msg: "购物车参数格式错误",
      result: "",
    },
    addressFormatError:{
      code: "1070",
      msg: "收货地址格式错误",
      result: "",
    },
    orderFormatError:{
      code: "1071",
      msg: "订单数据格式错误",
      result: "",
    },
    commentFormatError:{
      code: "1080",
      msg: "评论参数格式错误",
      result: "",
    }
  };